package com.ruoyi.domain;

import java.io.Serializable;

/**
 * 一级分类品牌#category_brand
 * @TableName category_brand
 */
public class CategoryBrand implements Serializable {
    /**
     * 分类品牌主键#primary
     */
    private Integer coneBrdId;

    /**
     * 分类#foreign#category_one=cone_id,cone_name
     */
    private Integer coneId;

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    private Integer brandId;

    /**
     * 序号
     */
    private Integer coneBrdNum;

    private static final long serialVersionUID = 1L;

    /**
     * 分类品牌主键#primary
     */
    public Integer getConeBrdId() {
        return coneBrdId;
    }

    /**
     * 分类品牌主键#primary
     */
    public void setConeBrdId(Integer coneBrdId) {
        this.coneBrdId = coneBrdId;
    }

    /**
     * 分类#foreign#category_one=cone_id,cone_name
     */
    public Integer getConeId() {
        return coneId;
    }

    /**
     * 分类#foreign#category_one=cone_id,cone_name
     */
    public void setConeId(Integer coneId) {
        this.coneId = coneId;
    }

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    public Integer getBrandId() {
        return brandId;
    }

    /**
     * 品牌#foreign#brand_info=brand_id,brand_cn_name
     */
    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    /**
     * 序号
     */
    public Integer getConeBrdNum() {
        return coneBrdNum;
    }

    /**
     * 序号
     */
    public void setConeBrdNum(Integer coneBrdNum) {
        this.coneBrdNum = coneBrdNum;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CategoryBrand other = (CategoryBrand) that;
        return (this.getConeBrdId() == null ? other.getConeBrdId() == null : this.getConeBrdId().equals(other.getConeBrdId()))
            && (this.getConeId() == null ? other.getConeId() == null : this.getConeId().equals(other.getConeId()))
            && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()))
            && (this.getConeBrdNum() == null ? other.getConeBrdNum() == null : this.getConeBrdNum().equals(other.getConeBrdNum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getConeBrdId() == null) ? 0 : getConeBrdId().hashCode());
        result = prime * result + ((getConeId() == null) ? 0 : getConeId().hashCode());
        result = prime * result + ((getBrandId() == null) ? 0 : getBrandId().hashCode());
        result = prime * result + ((getConeBrdNum() == null) ? 0 : getConeBrdNum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", coneBrdId=").append(coneBrdId);
        sb.append(", coneId=").append(coneId);
        sb.append(", brandId=").append(brandId);
        sb.append(", coneBrdNum=").append(coneBrdNum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}